package org.xxx.epms.gateway.feign.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.userdetails.UserDetails;
import org.xxx.epms.gateway.dto.AdminDetailsDto;
import org.xxx.epms.gateway.dto.AdminPermissionDto;
import org.xxx.epms.gateway.feign.AdminFeign;
import java.util.Collections;
import java.util.List;
import java.util.Map;

@Slf4j
public class AdminFeignHandler implements AdminFeign {
    @Override
    public AdminDetailsDto getAdminDetails(String adminCode) {
        log.info("Fallback AdminFeignHandler.getAdminDetailsService");
        return null;
    }

    @Override
    public List<AdminPermissionDto> getAdminPermissionList() {
        log.info("Fallback AdminFeignHandler.getAdminPermissionList");
        return Collections.emptyList();
    }
}
